<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<--%response.sendRedirect("profile"); %-->

<html>
<head>
    <title>Registration Form</title>
    <style>
        #error {
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid transparent;
            border-radius: 4px;
            color: #a94442;
            background-color: #f2dede;
            border-color: #ebccd1;
            text-align: center;
        }

        #msg {
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid transparent;
            border-radius: 4px;
            color: #31708f;
            background-color: #d9edf7;
            border-color: #bce8f1;
            text-align: center;
        }

        #login-box {
            width: 300px;
            padding: 20px;
            margin: 100px auto;
            background: #fff;
            -webkit-border-radius: 2px;
            -moz-border-radius: 2px;
            border: 1px solid #000;
        }
    </style>
</head>
<body>

<div id="login-box">


    <form form method="post" action="move">

        <table>
            <tr>
                <td colspan="2"> <div id="msg">Figure</div></td>
            </tr>

            <c:if test="${not empty message}">
                <tr>
                    <td colspan="2"> <div id="error">${message}</div></td>
                </tr>
            </c:if>

            <tr>
                <td>Row:</td>
                <td><input type='number' name='row'></td>
            </tr>
            <tr>
                <td>Col:</td>
                <td><input type='text' name='col' /></td>
            </tr>
            <tr>
                <td>Side:</td>
                <td><input type='number' name='side'></td>
            </tr>
            <tr>
                <td>Figure:</td>
                <td><input type='text' name='figure'></td>
            </tr>

            <tr>
                <td colspan='2'><input name="submit" type="submit"
                                       value="move" /></td>
            </tr>

        </table>

    </form>
    <br />
    <a href="login">Login Here</a>
</div>

</body>
</html>
